/**
 * file
 */
package com.tdkj.model.user;

import java.sql.Timestamp;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

/**
 * 
 * FileName: BeanAdminIntoSilverRecoder.java
 * 
 * @Description: TODO管理员发放入银币记录
 * 
 *               All rights Reserved, Designed By ZTE-ITS
 * 
 *               Copyright: Copyright(C) 2010-2011
 * 
 *               Company 天成科技有限公司
 * 
 * @author: 李兴建
 * 
 * @version V1.0
 * 
 *          Createdate: 2012-8-6 下午04:29:10
 * 
 * 
 * 
 *          Modification History:
 * 
 *          Date Author Version Discription
 * 
 * 
 * 
 *          
 *          ----------------------------------------------------------------------
 *          -------------
 * 
 *          2012-8-6 李兴建 1.0 1.0
 * 
 *          Why & What is modified: <修改原因描述>
 */
@Entity
@Table(name = "xnky_admin_intoSilver_records")
public class BeanAdminIntoSilverRecords extends BaseEntity {
	private static final long serialVersionUID = -6087065396494870796L;
	// 操作管理员
	private BeanAdmin beanAdmin;
	// 放入银币的用户
	private BeanUser user;
	// 放入时间
	private Timestamp dataTime;
	// 银币数量
	private int silverCount;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "adminid", nullable = false)
	public BeanAdmin getBeanAdmin() {
		return beanAdmin;
	}

	public void setBeanAdmin(BeanAdmin beanAdmin) {
		this.beanAdmin = beanAdmin;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "userid", nullable = false)
	public BeanUser getUser() {
		return user;
	}

	public void setUser(BeanUser user) {
		this.user = user;
	}

	public Timestamp getDataTime() {
		return dataTime;
	}

	public void setDataTime(Timestamp dataTime) {
		this.dataTime = dataTime;
	}

	public int getSilverCount() {
		return silverCount;
	}

	public void setSilverCount(int silverCount) {
		this.silverCount = silverCount;
	}

}
